const sql = require('../../sql/mysql');
const cattlesmoves = require('../../sql/cattlesmove');
module.exports = (req,res)=>{
  sql.get(cattlesmoves,req.fields).then((list)=>{
   res.send({
       code:0,
       msg:"获取成功",
       list,
   })
  }).catch(()=>{
   res.send({
     code:1,
     msg:"获取失败"
   })
  })
}